package me.yushuai.wukong.base.api.dto;

import java.util.Objects;

/**
 * @author zhoushuai@189.cn
 * @since 2023-05-24
 */
public final class ConfigVariableBizId {

    private String configBizId;

    private String configVariableBizId;

    public ConfigVariableBizId(String configBizId, String configVariableBizId) {
        this.configBizId = configBizId;
        this.configVariableBizId = configVariableBizId;
    }

    public String getConfigBizId() {
        return configBizId;
    }

    public String getConfigVariableBizId() {
        return configVariableBizId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ConfigVariableBizId that = (ConfigVariableBizId) o;
        return Objects.equals(getConfigBizId(), that.getConfigBizId()) && Objects.equals(getConfigVariableBizId(), that.getConfigVariableBizId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getConfigBizId(), getConfigVariableBizId());
    }
}
